package com.jxc.util;


/**
 * Key对应Value 用于字段匹配
 * @author Pan
 *
 */
public class ItemBean{

	private String key;
	private String[] values;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String[] getValues() {
		return values;
	}

	public void setValues(String[] values) {
		this.values = values;
	}

	/**
	 * 查找value值是否在该对象中存在
	 * @param value
	 * @return
	 */
	public boolean find(String value){
		
		for(String s:values){
			if(s.equals(value)){
				return true;
			}
		}
		
		return false;
	}
}
